config_opts['chroot_setup_cmd'] = 'install basesystem-build bsdtar dnf magic-devel'
config_opts['dnf_common_opts'] = ['--refresh']
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
config_opts['nosync'] = False
config_opts['nosync_force'] = True
config_opts['package_manager'] = 'dnf'
config_opts['rpmbuild_networking'] = False
# Tests fail sometimes due to networking and other issues
config_opts['rpmbuild_opts'] = '--nocheck'
config_opts['plugin_conf']['ccache_enable'] = False
config_opts['plugin_conf']['package_state_enable'] = True
config_opts['plugin_conf']['package_state_opts'] = {}
config_opts['plugin_conf']['package_state_opts']['available_pkgs'] = False
config_opts['plugin_conf']['package_state_opts']['installed_pkgs'] = True
config_opts['plugin_conf']['root_cache_enable'] = False
config_opts['plugin_conf']['tmpfs_enable'] = @TMPFS@
config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '100g'
config_opts['releasever'] = '@ROSAVER@'
# mock puts lock file into the root of basedir, we should randomize it to enable parallel builds
config_opts['root'] = '@BASEDIR@'
#config_opts['basedir'] = '@BASEDIR@'
config_opts['cache_topdir'] = '@CACHEDIR@'
config_opts['tar'] = 'bsdtar'
config_opts['target_arch'] = '@ARCH@'
config_opts['use_nspawn'] = False
config_opts['useradd'] = '/usr/sbin/useradd -o -m -u {{chrootuid}} -g {{chrootgid}} -d {{chroothome}} {{chrootuser}}'


config_opts['yum.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
install_weak_deps=0
metadata_expire=60s
best=1

[main-x86_64]
name=main-x86_64
baseurl=@REPOURI@/x86_64/release
gpgcheck=0
enabled=0

[main-i686]
name=main-i686
baseurl=@REPOURI@/i686/release
gpgcheck=0
enabled=0

[main-aarch64]
name=main-aarch64
baseurl=@REPOURI@/aarch64/release
gpgcheck=0
enabled=0
"""

